<?php

namespace app\shop\controller\product;

use app\Request;
use app\shop\controller\Controller;

/**
 * 商品管理控制器
 */
class ProductClaim extends Controller
{
    public function listData(Request $request)
    {
        $where = $request->param();
        $list = \app\common\model\product\ProductClaim::listData($where, $this->postData(), ['order', 'supplier', 'store', 'storeClerk']);
        return $this->renderSuccess('', $list);
    }

    public function edit(Request $request)
    {
        $params = $request->param();
        $one = \app\common\model\product\ProductClaim::one($params, ['order', 'supplier', 'store', 'storeClerk']);
        return $this->renderSuccess('', $one);
    }
}
